package com.example.apiproject;

import com.example.apiproject.websocket.IMserver;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.example.apiproject.dao")
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
public class ApiProjectApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiProjectApplication.class, args);
        // 启动 websocket 服务器
        IMserver.start();
    }

}
